// Because b is true, the line draws
boolean b = true;
if (b == true) { // If b is true,
  line(20, 50, 80, 50); // draw the line
}
if (!b == true) { // If b is false,
  ellipse(50, 50, 36, 36); // draw the ellipse
}